import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/reset.css' //重置样式
import Http from '@/api/request.js' //axios
import * as filter from '@/common/filter.js' //过滤器

//打包时需要注释的
import VueQuillEditor from 'vue-quill-editor' //富文本
// 富文本样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import ElementUI from 'element-ui' //ElementUI
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(VueQuillEditor)
Vue.use(ElementUI);
//end


Vue.prototype.$axios = Http //挂载到vue实例上
//注册全局过滤器
Object.keys(filter).forEach(key => {
  Vue.filter(key, filter[key])
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
